package com.aube.mis.exception;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;

public class PageExceptionResolver extends SimpleMappingExceptionResolver {

    private static Logger log = LoggerFactory.getLogger(PageExceptionResolver.class);

	@Override
	protected ModelAndView doResolveException(HttpServletRequest req, HttpServletResponse res, Object obj, Exception ex) {
		log.error("doResolveException error", ex);
		return super.doResolveException(req, res, obj, ex);
	}

}
